class WsBot():
    # 先预置一些肯定会用的变量
    client = None # 客户端
    server = None # 服务端
    config = None
    plugins = None
    scheduler = None
    cmd_route = {"command": [], "notice": [], "request": [], 'invoke': [], 'env': []}

    on_env = None
    on_command = None
    on_request = None
    on_notice = None
    on_invoke = None

    extensions = {}
    debug = False

    def __getattr__(self, key):
        if hasattr(WsBot, key):
            return getattr(WsBot, key)


bot = WsBot()
